Skip to content

feat(english): add CClaw Translations source - #2874

Merged
rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
RibatTRW:fm/lnreader-queue-19
Nov 12, 2026
Merged

rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
RibatTRW:fm/lnreader-queue-19

Conversation

@RibatTRW

@RibatTRW RibatTRW commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds CClaw Translations (https://cclawtranslations.home.blog), an English fan-translation blog of Japanese light novels hosted on WordPress.com, as a standalone source (plugins/english/cclawtranslations.ts, id cclawtranslations, v1.0.0, with icon).

  • Browse: the "Ongoing Projects" and "Completed Projects" catalogue pages give 33 novels with covers; a Section filter (All / Ongoing / Completed) is provided. The catalogue is a single page.
  • Novel details: each novel's table-of-contents page is parsed into chapters named after their volume (e.g. "Volume 1 - Chapter 1"), using the dated post URLs as chapter paths. Status comes from which catalogue page lists the novel. The site publishes no synopsis, so none is returned.
  • Chapter text: the post body is returned with the site's sharing/related-post widgets removed.
  • Search: the site's own search covers posts rather than novels, so search filters the novel catalogue by title.
  • The site's "Licensed & Dropped Projects" page is not included.

Fixes #292

Screenshots

These screenshots come from the repository's plugin playground (headless Chromium, live site data), not from the LNReader app.

Plugin playground: popular novels listing with covers

Plugin playground: novel details with chapter list

Plugin playground: chapter text

Plugin playground: search results for "kawaii"

Testing

  • npm run build:full exits 0.
  • npm run check:plugin -- plugins/english/cclawtranslations.ts: popularNovels (33 novels), searchNovels, parseNovel (24 chapters) and parseChapter all PASS.
  • In the playground I opened a 96-chapter novel and read a chapter; I also parsed the 105-chapter and 198-chapter novels and a 5-chapter novel. Chapter counts on the table-of-contents pages were compared with an independent count of the dated links on each page.
  • ESLint and Prettier are clean for the changed files.
  • A review comment pointed out that novel status defaulted to Ongoing when the completed-projects list could not be fetched; a follow-up commit leaves the status unset in that case.
  • Not tested in the LNReader app.

This change was written and tested by an AI coding agent (Claude) and reviewed by an automated pipeline only. No human has reviewed it yet.

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 1 of 2 scenarios driven live against the product
Scenario Result Live Evidence
Run the CClaw Translations plugin against the live site: popular list, search, novel parse and chapter text all succeed ✅ pass live check:plugin output: popularNovels 33 novels, searchNovels 1 result, parseNovel 24 chapters, parseChapter 7971 chars
Completed-list unavailable leaves status unset (the commit b5a7c35 fix) ⏸️ untested no The completed-projects page was reachable during the run, so the failure path never triggered. Forcing it would mean blocking that one URL, which the checker does not support.
  • npm ci
  • npm run check:plugin -- plugins/english/cclawtranslations.ts
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@greptile-apps

greptile-apps Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change adds one new source for readers who use CClaw Translations.

The PR appears safe to merge, with a non-blocking correction needed for status lookup failures.

Findings

  1. P2 Finished novels appear ongoing ▶

Summary

Adds the CClaw Translations source and its icon.

  • Readers can browse and read novels from CClaw Translations.

Reviews (1) · Last reviewed commit: "feat(english): add CClaw Translations so..." · Reviewed by Greptile

Comment thread plugins/english/cclawtranslations.ts Outdated
Comment on lines +204 to +205
} catch {
return false;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Finished novels appear ongoing

isCompleted returns false whenever the completed-projects request fails. If the contents page loads but this second request times out or returns an HTTP error, parseNovel marks even a completed novel as ongoing. Leave status unset when the lookup fails instead of treating an unavailable list as proof that the novel is ongoing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b5a7c35: isCompleted now returns undefined when the completed-projects list cannot be fetched, and parseNovel leaves status unset in that case instead of reporting Ongoing.

@rajarsheechatterjee
rajarsheechatterjee merged commit 10a3596 into lnreader:master Nov 12, 2026
3 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CClaw Translations

2 participants